package com.example.myproject.model.enums;


import lombok.Getter;

/** 促销类型及其对应倍率 */
@Getter
public enum PromotionType {

    DISCOUNT_75 (0.75, 1),
    DISCOUNT_50 (0.50, 1),
    DISCOUNT_25 (0.25, 1),
    FREE        (0.00, 1),
    DOUBLE_UPLOAD(1.00, 2);

    private final double downloadRate;
    private final double uploadRate;

    PromotionType(double downloadRate, double uploadRate) {
        this.downloadRate = downloadRate;
        this.uploadRate   = uploadRate;
    }
}